using System;
using System.Collections.Generic;
using SubSonic.SqlGeneration.Schema;

namespace CSI.Directory.Core.Model
{
    [Serializable]
    public class Listing : Base
    {
        public string Description { get; set; }
        public string Url { get; set; }
        public string Email { get; set; }
        public string Phone { get; set; }
        public string AddressLine1 { get; set; }
        public string AddressLine2 { get; set; }
        public string City { get; set; }
        public string State { get; set; }
        public string Zip { get; set; }
        public string Image { get; set; }
        public string Attachment { get; set; }
        public string Keywords { get; set; }
        public string Contact { get; set; }
        public bool Active { get; set; }
        public bool Featured { get; set; }
        [SubSonicIgnore]
        public IList<Category> Categories { get; set; }
        [SubSonicIgnore]
        public IList<County> Counties { get; set; }
        public int UserId { get; set; }
    }

    [Serializable]
    public class ListingCategory
    {
        public int Id { get; set; }
        public int Listing { get; set; }
        public int Category { get; set; }
        [SubSonicIgnore]
        public string Name { get; set; }
        [SubSonicIgnore]
        public bool Feature { get; set; }
    }

    [Serializable]
    public class ListingCounty
    {
        public int Id { get; set; }
        public int Listing { get; set; }
        public int County { get; set; }

        
    }
}